﻿<form>
  <input type="hidden" name="mode" value="apply" />
  <input type="hidden" name="id" value="_%id%_" />
  <div class="title"><input type="text" name="title" value="_%title%_"></div>
  <div class="contents">
    <textarea name="contents">_%contents%_</textarea>
  </div>
  <div class="foot"><input type="text" name="foot" value="_%foot%_"></div>
  <input type="button" name="submit" value="更新" onclick="update_contents_by_form('main',this.form);">
</form>
<form>
  <input type="hidden" name="mode" value="view" />
  <input type="hidden" name="id" value="_%id%_" />
  <input type="button" name="submit" value="取消" onclick="update_contents_by_form('item__%id%_',this.form);">
</form>
